.theme-mode-select-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;

  &[data-align="left"] {
    justify-content: flex-start;
  }

  &[data-align="right"] {
    justify-content: flex-end;
  }

  &[data-align="center"] {
    justify-content: center;
  }

  &[data-align="space-between"] {
    justify-content: space-between;
  }

  &[data-align="space-around"] {
    justify-content: space-around;
  }

  &[data-align="space-evenly"] {
    justify-content: space-evenly;
  }

  &[data-align="stretch"] {
    justify-content: stretch;
  }

  .theme-mode-item {
    width: 96px;
    height: 72px;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    grid-gap: 4px;
    padding: 4px;
    border: 1px solid transparent;
    box-shadow: 0px 0px 4px rgba(0, 35, 11, 0.2);

    transition: border-color 0.2s;
    cursor: pointer;

    .mode-card:nth-child(1) {
      grid-row: span 4;
    }

    .mode-card:nth-child(2) {
      grid-column: span 3;
    }

    .mode-card:nth-child(3) {
      grid-row: span 3;
      grid-column: span 3;
    }

    &:hover {
      border-color: #1677ff;
    }

    .mode-card {
      border: 1px solid #e4e7ed;
      background-color: #f5f7fa;
    }

    &[data-selected="true"] {
      border-color: #1677ff;
    }
  }
}
